package net.skyedu.service.myattend;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class MyAttend extends HttpServlet {

	private static final long serialVersionUID = -8296275310157004285L;

	public MyAttend() {
		super();
	}

	public void destroy() {
		super.destroy(); 
	}

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

		response.setContentType("text/html;charset=UTF-8");
		doPost(request,response);
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

		response.setContentType("text/html;charset=UTF-8");
		request.setCharacterEncoding("UTF-8");
		String USERID=request.getParameter("USERID");
		int code = Integer.parseInt(request.getParameter("code"));
		
		request.setAttribute("code", code);
		request.setAttribute("USERID", USERID);
		request.getRequestDispatcher("attend/myattend/myAtt.jsp").forward(request, response);
	}

	public void init() throws ServletException {}
}
